<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/7/25
  Time: 9:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="${pageContext.servletContext.contextPath}/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.servletContext.contextPath}/css/admin.css">
    <script src="${pageContext.servletContext.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.servletContext.contextPath}/js/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改内容</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="${pageContext.servletContext.contextPath}/dept/update">
            <input type="hidden" name="deptId" value="${sysDept.deptId}">
<%--            <input type="hidden" name="created" value="${sysDept.created}">--%>
            <div class="form-group">
                <div class="label">
                    <label>部门名称：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${sysDept.deptName}" name="deptName" data-validate="required:请输入部门名称" />
                    <div class="tips"></div>
                </div>
            </div>

            <div class="form-group dept-input">
                <div class="label">
                    <label>请选择上级部门：</label>
                </div>
                <select name="fDeptId" class="input" style="width:200px; line-height:17px;">
                    <c:forEach items="${deptList}" var="dept">
                        <option value="${dept.deptId}"  ${dept.deptId == sysDept.deptId ? 'selected' : ''}>${dept.deptName}</option>
                    </c:forEach>
                </select>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>

</body></html>